home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Games Collection 1
/
software vault.zip
/
software vault
/
CDR10
/
YICN23.ZIP
/
DEMO
/
ICONDEMO.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-15
|
607b
|
23 lines
#include "icon.h"
#include "xlib.h"
#include "xrect.h"
#include "xtext.h"
#include <conio.h>
extern yakLib myYakLib;
void iconDemo(void)
{
icon myIcon;
icon::setZoomTable(64);
myIcon.load("star.yak", icon::normal, &myYakLib);
x_rect_fill(50,50,250,150, VisiblePageOffs, 25);
myIcon.show(51, 51, VisiblePageOffs);
myIcon.showMasked(115,51,VisiblePageOffs);
myIcon.showZoomed(179,51,VisiblePageOffs,32);
x_printf(50,115,VisiblePageOffs,15,"Normal");
x_printf(115,115,VisiblePageOffs,15,"Masked");
x_printf(179,115,VisiblePageOffs,15,"Zoomed");
while(!kbhit());
}